package cn.com.yusys.yusp.admin.service;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import cn.com.yusys.yusp.commons.exception.Message;

@FeignClient(fallback=MessageProviderServiceHystrix.class  ,name = "${service.feignclient.name.yusp-app-common:yusp-app-common}")
public interface MessageProviderService {
    
	@RequestMapping(method = RequestMethod.GET, value = "/api/provider/getMessage")
	public Message getMessage(@RequestParam("code") String code);
}